package itemrecovertool.tasks;

import itemrecovertool.Item;
import itemrecovertool.MainFrame;
import itemrecovertool.TaskCell;
import javax.swing.Icon;

/**
 *
 * @author Matt
 */
public class RecoverTaskCell implements TaskCell {
    
    private Item item;
    
    public RecoverTaskCell(Item item) {
        this.item = item;
    }
    
    public Item getItem() {
        return item;
    }
    
    public String toString() {
        return "<html><b>Recover item:</b> "+item.DISPLAYNAME;
    }
    
    public String getToolTipText() {
        return "Recovers a lost item";
    }
    
    public Icon getIcon() {
        return MainFrame.getIcon("recover");
    }
}
